package com.limou.pojo;

public class Product {
    // 商品编号
    private Integer id;
    // 商品名称
    private String name;
    // 商品价格
    private Double price;
    // 商品介绍
    private String description;
    // 商品库存
    private Integer stock;
    // 商品状态，0表示上架，1表示下架
    private Integer status;

    public Product() {
    }

    public Product(Integer id, String name, Double price, String description, Integer stock, Integer status) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.description = description;
        this.stock = stock;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", description='" + description + '\'' +
                ", stock=" + stock +
                ", status=" + status +
                '}';
    }
}
